//
//  CommentFailedCell.m
//  IfengNews
//
//  Created by tianhy on 13-4-13.
//
//

#import "CommentFailedCell.h"
#import "CLGloble.h"

@implementation CommentFailedCell
@synthesize failedShowStr;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
      self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentView.backgroundColor = RGB(0xf7, 0xf7, 0xf7);
      self.backgroundColor = RGB(0xf7, 0xf7, 0xf7);
    }
    return self;
}

- (void)setBackgroundColor:(UIColor *)backgroundColor{
    [super setBackgroundColor:backgroundColor];
    self.contentView.backgroundColor=backgroundColor;
}

- (void)setUpSubviews
{
  [self initLabel];
}

- (void)initLabel
{
  UILabel *failedLabel = [[UILabel alloc] init];
  failedLabel.textColor = RGB(0x86, 0x86, 0x86);
  failedLabel.font = [UIFont systemFontOfSize:14];
  failedLabel.backgroundColor = [UIColor clearColor];
  failedLabel.text = self.failedShowStr;
  failedLabel.frame = CGRectMake(53, 15, 70, 16);
  [self.contentView addSubview:failedLabel];
}
@end
